package com.csnf.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface AccountMapper {
    //减余额
    @Update("update tb_account set money = money - #{money} where user_id = #{userId}")
    public int reduceAccount(String userId,Integer money);
}
